process.on('message', async ({ img }) => {
  const Tesseract = require('tesseract.js')
  const {
    data: { text } // : { text }
  } = await Tesseract.recognize(img, 'eng+chi_sim', {})
  process.send({ text })
})
